import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
import http from './utils/request'
import { showMessage } from './utils/message'

import store from './store'



Vue.prototype.$http = http
Vue.prototype.$msg = showMessage

Vue.config.productionTip = false

// 全局过滤器
Vue.filter('formatPrice', (value)=>{
  return `¥${Number(value).toFixed(2)}`;
})

App.mpType = 'app'

const app = new Vue({
  ...App,
  store
})
app.$mount()
